﻿<UserControl x:Class="GuidGeneratorWPF.HelpControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Margin" Value="4" />
        </Style>
    </UserControl.Resources>
    <Border Name="Border" Background="{StaticResource {x:Static SystemColors.WindowBrushKey}}" BorderThickness="2" BorderBrush="{StaticResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" CornerRadius="4">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" Name="TitleBar" Orientation="Horizontal" Background="{StaticResource {x:Static SystemColors.ActiveCaptionBrushKey}}" Margin="0">
                <Image Stretch="None" Source="/Resources/Guid16.png" Margin="4" />
                <TextBlock Text="GUID Generator" VerticalAlignment="Center" FontWeight="Bold" Foreground="{StaticResource {x:Static SystemColors.ActiveCaptionTextBrushKey}}" />
            </StackPanel>
            <FlowDocumentScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
                <FlowDocument FontFamily="Segoe UI" FontSize="12">
                    <List Margin="4,0" Padding="0" Name="list">
                        <ListItem>
                            <Paragraph>
                                To generate a single new GUID and copy it to the clipboard:
                            </Paragraph>
                            <List Margin="0" Name="listGuid">
                                <ListItem Name="listItemGuid">
                                    <Paragraph>
                                        press the Windows logo key
                                        <Image Source="/Resources/WindowsKey.png" Stretch="None" Name="imageGuidHotKey" />+G.
                                        <LineBreak />OR
                                    </Paragraph>
                                </ListItem>
                                <ListItem>
                                    <Paragraph>
                                        single-click the GUID Generator icon in the system tray.
                                    </Paragraph>
                                </ListItem>
                            </List>
                        </ListItem>
                        <ListItem Name="listItemGuids">
                            <Paragraph>
                                Press the Windows logo key
                                <Image Source="/Resources/WindowsKey.png" Stretch="None" />+H to generate a list of multiple GUIDs.
                            </Paragraph>
                        </ListItem>
                        <ListItem>
                        <Paragraph>
                            Double-click the icon to choose a GUID format and other options.
                        </Paragraph>
                    </ListItem>
                    <ListItem>
                        <Paragraph>
                            Right-click the icon for a menu with options to close GUID Generator, generate a list of multiple GUIDs, etc.
                        </Paragraph>
                    </ListItem>
                    </List>
                </FlowDocument>
            </FlowDocumentScrollViewer>
        </Grid>
    </Border>
</UserControl>
